package com.javasm.cloud.order.controller;

import com.javasm.cloud.common.entity.Response;
import com.javasm.cloud.common.entity.ResultCode;
import com.javasm.cloud.order.entity.vo.EmailVO;
import lombok.Data;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class EmailController {

    @PostMapping("/email")
    public Response<EmailVO> testEmail(@Validated @RequestBody EmailVO emailVO){
        return new Response<EmailVO>(ResultCode.SUCCESS).data(emailVO);
    }
}
